﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsForm3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var uName = "demo";
            var pWord = "3366";


            var uid = userName.Text;
            var pwd = passWord.Text;

            if(uName==uid && pWord == pwd)
            {
                MessageBox.Show("登录成功", "恭喜你");
            }
            else
            {
                MessageBox.Show("登录失败", "很遗憾");
            }

            }

            
        

        private void button2_Click(object sender, EventArgs e)
        {

        }
    }
}
